package com.bingbing.bingbingmall.member.feign;

import com.bingbing.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("bingbingmall-order")
public interface OrderFeignService {

    @PostMapping("/order/order/listWithItem")
    public R listWithItem(@RequestBody Map<String, Object> params);

    @GetMapping("/order/order1/cancelOrder/{orderSn}")
    public String cancelOrder(@PathVariable("orderSn") String orderSn);

    @GetMapping("/order/order1/affirmOrder/{orderSn}")
    public String affirmOrder(@PathVariable("orderSn") String orderSn);

    @GetMapping("/order/order1/applyOrder/{orderSn}")
    public String applyOrder(@PathVariable("orderSn") String orderSn);

    @GetMapping("/order/order1/accomplishOrder/{orderSn}")
    public String accomplishOrder(@PathVariable("orderSn") String orderSn);
}
